<template>
    <div>
        shop模块：
        <div v-for="item in list" :key="item.id">
        <p>id：{{ item.id }}</p>
        <p>姓名：{{ item.name }}</p>
        <p>价格：{{ item.price }}</p>
        </div>

    </div>
</template>
<script setup>  
import { useStore } from '../store/shop.js'   
import { storeToRefs } from 'pinia'
const store = useStore()
const { list } = storeToRefs(store)

</script>